const fs = require('fs')

module.exports = function(){
	const { dev, debug } = this.command
	if(dev || debug){
		const sourcePath = require.resolve('vconsole')
		const source = fs.readFileSync(sourcePath)
		return source + ';window.VConsole = new VConsole()'
	}
	return ''
}